if(DEFINED ENV{SDKTARGETSYSROOT})
    find_program(C_COMPILER NAMES $ENV{CC} PATHS PATH_TO_COMPILER)
    set(CMAKE_C_COMPILER ${C_COMPILER})
    find_program(CXX_COMPILER NAMES $ENV{CXX} PATHS PATH_TO_COMPILER)
    set(CMAKE_CXX_COMPILER ${CXX_COMPILER})
else()
    set(CMAKE_CXX_COMPILER <%= COMPILER_CPP %>)
    set(CMAKE_C_COMPILER <%= COMPILER_C %>)
endif()